<template>
    <div>
        <Form :show-message="false" label-position="top" >
            <Row :gutter="16">
                <Col span="12">
                    <FormItem label="公司名称">
                        <Input class="width90" v-model.trim="detailObj.enterpriseName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="项目名称" >
                        <Input class="width90" v-model.trim="detailObj.projectName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="工点名称">
                        <Input class="width90" v-model.trim="detailObj.pointName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="工点风险等级">
                        <Input class="width90" v-model.trim="detailObj.pointRiskGradeName"  readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="起始时间">
                        <Input class="width90" v-model.trim="detailObj.startTime" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="结束时间">
                        <Input class="width90" v-model.trim="detailObj.endTime" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="当月是否作业">
                        <Input class="width90" v-model.trim="detailObj.isWorkedThisMonth" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="工点描述">
                        <Input style="width: 95%" type="textarea" v-model.trim="detailObj.constructionPointDescription" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险名称">
                        <Input class="width90" v-model.trim="detailObj.riskOperationName"  readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险类型">
                        <Input class="width90" v-model.trim="detailObj.riskCategoryNames" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="作业风险等级">
                        <Input class="width90" v-model.trim="detailObj.riskLevelName" readonly/>
                    </FormItem>
                </Col>
                <Col span="12">
                    <FormItem label="分级方法">
                        <Input class="width90" v-model.trim="detailObj.classificationMethodName" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="具体风险描述">
                        <Input style="width: 95%" type="textarea" v-model.trim="detailObj.riskDescription" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="工程公司管控要求">
                        <Input style="width: 95%" type="textarea" v-model.trim="detailObj.engineeringCompanyRegulatoryRequirements" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="集团公司管控要求">
                        <Input style="width: 95%" type="textarea" v-model.trim="detailObj.groupCompanyRegulatoryRequirements" readonly/>
                    </FormItem>
                </Col>
                <Col span="24">
                    <FormItem label="目前该风险安全控制情况">
                        <Input style="width: 95%" type="textarea" v-model.trim="detailObj.currentSaftyControlOfTheRisk" readonly/>
                    </FormItem>
                </Col>
            </Row>
        </Form>
    </div>
</template>
<script>
export default {
    props:['detailObj'],
    data(){
        return{}
    },
    filters:{
        riskLevel(type){
            if(type == 1){
                return 'Ⅰ级'
            }else if(type == 2){
                return 'Ⅱ级'
            }else if(type == 3){
                return 'Ⅲ级'
            }else{
                return 'Ⅳ级'
            }
        }
    }
}
</script>